home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / utilities / bmfc000.lha / BMFC / src / bmfc / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-31  |  944 b   |  34 lines

  1. /**************************************/
  2. /* error.h                            */
  3. /* for BMFC 0.00                      */
  4. /* Copyright 1992 by Adam M. Costello */
  5. /**************************************/
  6.  
  7.  
  8. extern const char *const outofmem;  /* A common error message. */
  9.  
  10.  
  11. void warnf(const char *format, ...);
  12.  
  13. /* warnf() is like printf(), but uses  */
  14. /* stderr instead of stdout, and       */
  15. /* flushes stderr.                     */
  16.  
  17.  
  18. void failf(const char *format, ...);
  19.  
  20. /* failf() is like warnf(), but always */
  21. /* prefixes the output with "Error: ", */
  22. /* and calls exit(EXIT_FAILURE).       */
  23.  
  24.  
  25. void parsefailf(const char *format, ...);
  26.  
  27. /* parsefailf() is like failf(), but   */
  28. /* the prefix is                       */
  29. /* "Error in line  <n> pos <p>: ",     */
  30. /* where <n> and <p> are the results   */
  31. /* of the functions linenum() and      */
  32. /* position(), respectively, from      */
  33. /* parse.h.                            */
  34.